#!/bin/bash
### BEGIN INIT INFO
# Provides:          Planck1905
# Required-Start:    $remote_fs $local_fs $network $named $syslog $time
# Required-Stop:     $remote_fs $local_fs $syslog
# Default-Start:     3 4 5
# Default-Stop:      0 1 2 6
# Short-Description: Start n2n_v2s when system started
# Description:       Enable n2n_v2s for communication
### END INIT INFO

start(){
  cd /opt/tobacco
	nohup python3 app.py &
  nohup python3 data_monitor.py &
}
stop(){
	command # 写入关机时要执行的命令
}

case $1 in
start):
	stop
	start
;;
stop):
	stop
;;
restart):
	stop
	start
;;
esac

exit 0
